package com.cai.file.demo;

import java.io.File;
import java.io.IOException;

public class FileDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("./demo.txt");
        boolean success =  file.createNewFile();
        System.out.println("文件是否创建成功："+success);
    }
}
